home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.2 for Intel / NeXTSTEP 3.2 for Intel.iso / NextLibrary / Documentation / Sybase / DBLIB / Section2 / dbcmdrow.nr < prev    next >
Encoding:
Text File  |  1993-04-22  |  1.0 KB  |  41 lines

  1. .Na "DBCMDROW" 
  2. .Aa
  3. .Fu
  4. Determine whether the current command can return rows.
  5. .Ih "command, determining whether it can return rows"
  6. .Sy
  7. .Sf "RETCODE DBCMDROW(dbproc)"
  8. .Sp "DBPROCESS" "*dbproc"
  9. .Co
  10. .Bl
  11. This macro determines whether the command currently being
  12. processed by \f2dbresults()\f1 is one
  13. that can return rows, \f2i.e.\f1, a \*N SELECT
  14. statement or an EXECUTE on a stored procedure containing a 
  15. SELECT.
  16. The application can call it after
  17. .I "dbresults()"
  18. returns SUCCEED.
  19. .Bl
  20. Even if this macro returns SUCCEED, 
  21. the command does not return any rows if none have qualified.
  22. To determine whether any rows are actually being returned,
  23. use \f2DBROWS()\f1.
  24. .Bz
  25. .Pa
  26. .Pi dbproc
  27. A pointer to the DBPROCESS structure that provides the connection
  28. for a particular front-end/\*S process.  It contains all the
  29. information that \*L uses to manage communications and data between the
  30. front end and \*S.
  31. .in -.375i
  32. .Re
  33. .br
  34. SUCCEED or FAIL, to indicate whether the
  35. command can return rows.
  36. .Sa
  37. dbnextrow,
  38. dbresults,
  39. DBROWS,
  40. DBROWTYPE
  41.